package com.cy.ppj.comm.job;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.cy.ppj.service.account.UserInfoService;

/**
 * 用户信息定时任务
 *
 * @author: tanyilin
 * @create: 2018年10月9日 上午11:16:05
 */
@Component
public class UserInfoJob {

	@Autowired
	private UserInfoService userInfoService;
	
	@Scheduled(cron = "0 0 1 * * ?")
	public void updateNewUserToFalse() {
		userInfoService.updateNewUserToFalse();
	}
	
}
